﻿namespace jQube.Web
{
    using System.Collections.Specialized;
    using System.Web;

    internal class HttpRequestWrapper : IHttpRequest
    {
        public HttpRequestWrapper(HttpRequest httpRequest)
        {
            this.HttpRequest = httpRequest;
        }

        public HttpRequest HttpRequest { get; private set; }

        #region Miembros de IHttpRequest

        IHttpBrowserCapabilities IHttpRequest.Browser
        {
            get { return new HttpBrowserCapabilitiesWrapper(this.HttpRequest.Browser); }
        }

        string IHttpRequest.Path
        {
            get { return this.HttpRequest.Path; }
        }

        string IHttpRequest.FilePath
        {
            get { return this.HttpRequest.FilePath; }
        }

        NameValueCollection IHttpRequest.Headers
        {
            get { return this.HttpRequest.Headers; }
        }

        #endregion
    }
}
